﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Presenter.Support;

namespace MS.InformationManagement.Presenter.GuiasDeEnvio
{
    public class GuiasDeEnvioPresenter : BasePresenter<IGuiasDeEnvioView>
    {
        #region Constructors

        public GuiasDeEnvioPresenter(IGuiasDeEnvioView view) : base(view) { }
        
        #endregion

        #region Methods

        public void HandleLoad()
        {
            View.radicados = MS.InformationManagement.BLL.GuiasDeEnvio.GuiasDeEnvio.SearchInLibrary();
            View.Show();
        }

        public void SaveShippingGuide()
        {
            View.resultSave = MS.InformationManagement.BLL.GuiasDeEnvio.GuiasDeEnvio.UploadShippingGuide(View.Guias);
            View.resultSaveSucced();
        }

        #endregion


    }
}
